package com.app.repository.interfaces;

import com.app.model.main.RewardArticle;

public interface RewardArticleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RewardArticle record);

    int insertSelective(RewardArticle record);

    RewardArticle selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RewardArticle record);

    int updateByPrimaryKey(RewardArticle record);

    /**
     * 修改悬赏贴状态
     */
    int updateStatus(Long articleId, byte status);

    /**
     * 查询悬赏贴状态
     */
    Byte getStatus(Long articleId);

    /**
     * 根据articleId查询悬赏贴
     */
    RewardArticle getByArticleId(Long articleId);

}